package com.fss.user.dao;
import com.fssDataModels.*;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
public interface UserDao {
	//CRUD functions
	public TbUser getUser(String userId);
	
	//return: - 0 --> failed
	//		  - 1 --> success
	public int insertUser(TbUser user);
	
	//return: - 0 --> failed
	//		  - 1 --> success
	public int updateUser(TbUser user);
	
	//function: deleteActivity
	//return: - 0 --> not deleted
	//		  - 1 --> deleted
	public int deleteUser(TbUser user);
	
	public boolean checkExist(TbUser user);
	
	//contact related functions
	public List getContacts(TbUser user);
	public int addContact(TbUser user,TbUser friend);
	public int deleteContact(TbUser user,TbUser friend);
}
